﻿<phone:PhoneApplicationPage 
    x:Class="DDU.Curriculum.Views.AboutAndHelpView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:viewmodel="clr-namespace:DDU.ViewModel;assembly=DDU.ViewModel"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False">

    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush Stretch="Fill" ImageSource="/Assets/back.png"/>
        </Grid.Background>
        <Grid.DataContext>
            <viewmodel:AboutAndHelpViewModel/>
        </Grid.DataContext>
        
        <controls:Panorama>
            <controls:Panorama.Title>
                <Image Source="{Binding LogoPath}" Margin="12,76,0,0"/>
            </controls:Panorama.Title>
            
            <controls:PanoramaItem Header="{StaticResource IDS_ABOUT_HEADER}">
                <Grid>
                    <ScrollViewer>
                        <StackPanel>
                            <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                       Text="{StaticResource IDS_APP_NAME}"/>
                            <TextBlock Style="{StaticResource PhoneTextSubtleStyle}" 
                                       Text="for windows phone"/>
                            <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                       Text=" "/>
                            <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                       Text="{StaticResource IDS_ABOUT_APPINFO}"/>
                            <TextBlock Style="{StaticResource PhoneTextSubtleStyle}" >
                                <Run Text="{StaticResource IDS_ABOUT_VERSION}"/>
                                <Run Text=" "/>
                                <Run Text="{Binding Version}"/>
                                <LineBreak/>
                                <Run Text="{Binding ReleaseDate,StringFormat=\{0:D\}}"/>
                            </TextBlock>
                            <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                       Text=" "/>
                            <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                       Text="{StaticResource IDS_ABOUT_CONTACT}"/>
                            <!--<TextBlock Style="{StaticResource PhoneTextAccentStyle}" 
                                       Text="zhaorong@outlook"/>-->
                            <HyperlinkButton HorizontalAlignment="Left" Foreground="{StaticResource PhoneAccentBrush}" 
                                             Command="{Binding SendMailCommand}"
                                             Content="zhaorong@outlook.com"/>
                            <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                       Text=" "/>
                            <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                       Text="{StaticResource IDS_ABOUT_FEEDBACK}"/>
                            <HyperlinkButton HorizontalAlignment="Left" Foreground="{StaticResource PhoneAccentBrush}"
                                             Command="{Binding OpenRateCommand}"
                                             Content="{StaticResource IDS_ABOUT_RATE}"/>
                        </StackPanel>
                    </ScrollViewer>
                </Grid>
            </controls:PanoramaItem>

            <controls:PanoramaItem Header="{StaticResource IDS_HELP_HEADER}">
                <Grid>
                    <ListBox>
                        
                    </ListBox>
                </Grid>
            </controls:PanoramaItem>
        </controls:Panorama>
    </Grid>

</phone:PhoneApplicationPage>